#app{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.toggle{
  position: fixed;
  top: 50px;
  width: 150px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: rgb(249, 202, 36);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 3px rgba(249, 202, 36,.5);
}

.toggle:active{
  box-shadow: none;
  transform: translateY(3px);
}

.main_box{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 500px;
  height: 500px;
  transition:  .4s ease-out;
}
.main_box.big{
  width: 600px;
  height: 600px;
}

.main_box.big .box{
  transform: rotateZ(360deg);
}
.box{
  position: relative;
  width: 125px;
  height: 125px;
  background: url(https://media.giphy.com/media/EZqwsBSPlvSda/giphy.gif) no-repeat;
  background-size: 500px 500px;
  transition:  .4s ease-out;
}



/* 下方四边形 */
.box::before{
  content: "";
  position: absolute;
  left: 8px;
  bottom: -15px;
  width: 100%;
  height: 15px;
  background-color: gold;
  transform: skewX(45deg);
}

/* 右方四边形 */
.box::after{
  content: "";
  position: absolute;
  right: -15px;
  top: 8px;
  width: 15px;
  height: 100%;
  background-color: #f6e58d;
  transform: skewY(45deg);
}